<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-vue使用步骤</title>
</head>
<body>
    <script>
        let array = [
            {name:"lujieni", score:33},
            {name:"qizi", score:55},
            {name:"xiaoyan", score:12}
        ]
        let total = array.reduce((total, current) =>{
            return total + current.score
        }, 0);
        console.log(total);
    </script>

</body>
</html>